package com.alangyun.remind.repository.algorithm;

/**
 * 社会统考证书类型
 */
public enum SocialCert implements IFactorEnum {
	ZC("注册类",1.5, 0.0, 0.0),
	QT("其他",1, 0.0, 0.0);

	private String keyCode;
	private double standVal;//标准分
	private double minVal;//最大分（扩展用）
	private double maxVal;//最小分（扩展用）

	private SocialCert(String k, double standard, double min, double max) {
		this.keyCode = k;
		this.standVal = standard;
		this.minVal = min;
		this.maxVal = max;
	}

	public String key() {
		return keyCode;
	}

	public double standard() {
		return standVal;
	}

	public double min() {
		return minVal;
	}

	public double max() {
		return maxVal;
	}

	public static SocialCert keyOf(String key) {
		SocialCert ret=null;
		if(ZC.key().equals(key))
			ret=ZC;
		else if(QT.key().equals(key))
			ret=QT;
		
		return ret;
	}
}
